package com.zjp.proxy2;

/**
 * @author: zjp
 * @date: 2023-12-03
 * @description: 用户实现类
 */
public class UserServiceImpl implements UserService {

    @Override
    public String login(String account, String password) throws InterruptedException {
        Thread.sleep(1000);
        System.out.println("欢迎" + account + "登录系统!");
        return "ok";
    }

    @Override
    public String getUserInfo(String account) throws InterruptedException {

        Thread.sleep(1000);
        System.out.println("获取用户信息成功");

        return "userInfo";
    }

    @Override
    public int removeUserById(String account) throws InterruptedException {
        Thread.sleep(1000);
        System.out.println("删除用户信息成功");

        return 1;
    }
}
